define(function(require, exports, module) {
	
	var iframePageTpl='<iframe src="" id="iframePage" name="iframePage"'+
	    'frameborder="0" marginheight="0" marginwidth="0"'+
	      '  width="100%" scrolling="auto" height="660px"  '+
	      '  allowtransparency="true"  style="background-color:transparent">'+
	    '</iframe>';
	require('avalon2');	
	
	var IframePage=function($container,config,data){
		this.getUrl=Common.getUrl.bind(this);
		this.config=$.extend({},IframePage.DEFAULT,config);
		this.data=data;
		this.$container=$container;
		this.$div=$(iframePageTpl).prependTo(this.$container);
		this.init();
	};
	
	IframePage.prototype={
		init:function(){
			this.$iframePage=$('#iframePage');
			this.$iframePage.attr('src',this.config.params['src']);
			this.bind();
		},
		bind:function(){
			
		},
		destroy:function(){
			this.$div.remove();
			this.$vmId&&delete avalon.vmodels[this.$vmId];
		}
	}
	
	IframePage.DEFAULT={
			
	};
	
	return IframePage;
});